package me.hys.service.resource.impl;

import java.util.List;
import java.util.Map;

import me.hys.base.PageQuery;
import me.hys.dao.resource.IRadioMapper;
import me.hys.entity.resource.RadioEntity;
import me.hys.service.resource.IRadioManager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Author: @author HYS . <br>
 * Date: 2015-12-23 下午10:02:55 . <br>
 * Function:
 */
@Service
@Transactional
class RadioManagerImpl implements IRadioManager {
	@Autowired
	private IRadioMapper radioMapper;

	/*
	 * (non-Javadoc)
	 * 
	 * @see me.hys.base.IBaseManager#delete(java.lang.String)
	 */
	@Override
	public void delete(String id) {
		radioMapper.delete(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see me.hys.base.IBaseManager#findByCond(java.util.Map)
	 */
	@Override
	public List<RadioEntity> findByCond(Map<String, Object> cond) {
		return null;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see me.hys.base.IBaseManager#findById(java.lang.String)
	 */
	@Override
	public RadioEntity findById(String id) {
		return radioMapper.findById(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see me.hys.base.IBaseManager#findPage(me.hys.base.PageQuery)
	 */
	@Override
	public PageQuery<RadioEntity> findPage(PageQuery<RadioEntity> page) {
		return null;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see me.hys.base.IBaseManager#saveOrUpdate(java.lang.Object)
	 */
	@Override
	public int saveOrUpdate(RadioEntity entity) {
		return 0;
	}
}
